package cn.xscrum.demo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.xscrum.demo.mapper.FlowPassengerNumberMapper;
import cn.xscrum.demo.domain.FlowPassengerNumber;
import cn.xscrum.demo.service.IFlowPassengerNumberService;
import cn.xscrum.common.core.text.Convert;

/**
 * 线网客流量Service业务层处理
 * 
 * @author xscrum
 * @date 2020-11-25
 */
@Service
public class FlowPassengerNumberServiceImpl implements IFlowPassengerNumberService 
{
    @Autowired
    private FlowPassengerNumberMapper flowPassengerNumberMapper;

    /**
	 * 查询线网客流量
     * 
     * @param id 线网客流量ID
     * @return 线网客流量
     */
    @Override
    public FlowPassengerNumber selectFlowPassengerNumberById(Long id)
    {
        return flowPassengerNumberMapper.selectFlowPassengerNumberById(id);
    }

    /**
	 * 查询线网客流量列表
     * 
     * @param flowPassengerNumber 线网客流量
     * @return 线网客流量
     */
    @Override
    public List<FlowPassengerNumber> selectFlowPassengerNumberList(FlowPassengerNumber flowPassengerNumber)
    {
        return flowPassengerNumberMapper.selectFlowPassengerNumberList(flowPassengerNumber);
    }

    /**
	 * 新增线网客流量
     * 
     * @param flowPassengerNumber 线网客流量
     * @return 结果
     */
    @Override
    public int insertFlowPassengerNumber(FlowPassengerNumber flowPassengerNumber)
    {
        return flowPassengerNumberMapper.insertFlowPassengerNumber(flowPassengerNumber);
    }

    /**
	 * 修改线网客流量
     * 
     * @param flowPassengerNumber 线网客流量
     * @return 结果
     */
    @Override
    public int updateFlowPassengerNumber(FlowPassengerNumber flowPassengerNumber)
    {
        return flowPassengerNumberMapper.updateFlowPassengerNumber(flowPassengerNumber);
    }

    /**
	 * 删除线网客流量对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteFlowPassengerNumberByIds(String ids)
    {
        return flowPassengerNumberMapper.deleteFlowPassengerNumberByIds(Convert.toStrArray(ids));
    }

    /**
	 * 删除线网客流量信息
     * 
     * @param id 线网客流量ID
     * @return 结果
     */
    @Override
    public int deleteFlowPassengerNumberById(Long id)
    {
        return flowPassengerNumberMapper.deleteFlowPassengerNumberById(id);
    }
}
